function requestPermission (successCallback, errorCallback) {
  let permissions = cordova.plugins.permissions
  let list = [
    permissions.WRITE_EXTERNAL_STORAGE,
    permissions.READ_EXTERNAL_STORAGE
  ]

  permissions.requestPermission(list, successCallback, errorCallback)
}

export {
  requestPermission
}
